import request from '@/utils/request'

// 分类列表
export const queryLabelList = (params) => {
  return request('GET', '/app/info/category/list', params)
}

// 发布信息
export const infoPost = (data) => {
  return request('POST', '/app/info/information', data)
}

// 编辑信息(包括上下架)
export const infoPut = (data) => {
  return request('PUT', '/app/info/information', data)
}

// 信息列表
export const queryInfoList = (params) => {
  return request('GET', '/app/info/information/list', params)
}

// 获取信息详细信息
export const queryInfoDetail = (id) => {
  return request('GET', `/app/info/information/${id}`)
}

// 保证金(信息)
export const queryInfoBond = (params) => {
  return request('GET', '/app/info/information/bond', params)
}

// 删除信息
export const deleteInfo = (id) => {
  return request('DELETE', `/app/info/information/${id}`)
}
